package com.sreader.logic;

import java.util.HashMap;

public class OccurenceTable implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1054726943660296164L;
	private static final int ONE = 1;
	private static final int TWO = 2;
	private static final int THREE = 3;
	private static final int FOUR = 4;
	private static final int FIVE = 5;
	private static final int SIX = 6;
	private static final int SEVEN = 7;
	private static final int EIGHT = 8;
	private static final int NINE = 9;
	public  HashMap<Integer, Integer> occurenceTable;
	
	

	public OccurenceTable(){
		init();
	}
	
	public HashMap<Integer, Integer> getOccurenceTable() {
		return this.occurenceTable;
	}

	public  void init(){
		this.occurenceTable = new HashMap<Integer,Integer>();
		occurenceTable.put(ONE, 0);
		occurenceTable.put(TWO, 0);
		occurenceTable.put(THREE, 0);
		occurenceTable.put(FOUR, 0);
		occurenceTable.put(FIVE, 0);
		occurenceTable.put(SIX, 0);
		occurenceTable.put(SEVEN, 0);
		occurenceTable.put(EIGHT, 0);
		occurenceTable.put(NINE, 0);
	}
	public  void setOccurenceOne(int value){
		occurenceTable.put(ONE, value);
	}
	public  void setOccurenceTwo(int value){
		occurenceTable.put(TWO, value);
	}
	public  void setOccurenceThree(int value){
		occurenceTable.put(THREE, value);
	}
	public  void setOccurenceFour(int value){
		occurenceTable.put(FOUR, value);
	}
	public  void setOccurenceFive(int value){
		occurenceTable.put(FIVE, value);
	}
	public  void setOccurenceSix(int value){
		occurenceTable.put(SIX, value);
	}
	public  void setOccurenceSeven(int value){
		occurenceTable.put(SEVEN, value);
	}
	public  void setOccurenceEight(int value){
		occurenceTable.put(EIGHT, value);
	}
	public  void setOccurenceNine(int value){
		occurenceTable.put(NINE, value);
	}
	public  int getOccurenceOne(){
		return occurenceTable.get(ONE);
	}
	public  int getOccurenceTwo(){
		return occurenceTable.get(TWO);
	}
	public int getOccurenceThree(){
		return occurenceTable.get(THREE);
	}
	public  int getOccurenceFour(){
		return occurenceTable.get(FOUR);
	}
	public int getOccurenceFive(){
		return occurenceTable.get(FIVE);
	}
	public  int getOccurenceSix(){
		return occurenceTable.get(SIX);
	}
	public  int getOccurenceSeven(){
		return occurenceTable.get(SEVEN);
	}
	public  int getOccurenceEight(){
		return occurenceTable.get(EIGHT);
	}
	public  int getOccurenceNine(){
		return occurenceTable.get(NINE);
	}
}
